import QtQuick 2.15
import QtQuick.Window 2.15
import FluentUI 1.0

import QtQuick.Controls 2.15

FluWindow {
    width: 400
    height: 300
    title: "FluentUI Demo"

    Loader {
        id: pageLoader
        anchors.fill: parent
    }

    FluText {
        anchors.centerIn: parent
        text: "Hello FluentUI!"
        font.pixelSize: 24
    }

    FluButton {
        anchors.bottom: parent.bottom
        anchors.horizontalCenter: parent.horizontalCenter
        anchors.bottomMargin: 20
        text: "Go to Demo"
    onClicked: {
        if(pageLoader.source === "") {
            pageLoader.source = "qrc:/AppDemo/views/demo.qml"
        } else {
            pageLoader.source = ""
            pageLoader.source = "qrc:/AppDemo/views/demo.qml"
        }
    }
    }
}
